'''集合'''
# s = set()
# print(type(s))
#
# str = "bsbdsksk777632"
# s = set(str)
# print(s)
#
#
# l = [1,1,2,3,3,1,2,4]
# s = set(l)
# print(s)
#
# t = (3,3,8,0,2,3,2,0)
# s = set(t)
# print(s)
#
# d = {"name":"nihao"}
# s =set(d)
# print(s)
#
#
# s = {"asbs",(2,2,1)}
# print(s)
#
# s = {1,1,2,2,4,5}
# s.add(99)
# print(s)
#
#
# print(s.pop())
# print(s)
#
# s.remove(99)
# print(s)
# # s.remove(99)
# # print(s)
#
# s.discard(99)
# print(s)
#


s1 = {2,1,4,2,4,7,5,77,22}
s2 = {55,3,2,6,2,3,12,3,4,66,77}
s3 = {2,6,2,3}

# 子集
print(s3<s2)
print(s3.issubset(s2))

# 并集
print(s1|s3)
print(s1.union(s3))

# 交集
print(s1&s2)
print(s1.intersection(s2))

# 差集
print(s2-s1)
print(s2.difference(s1))

# 对称差,s1里面有的s2没有，s2里面有的s1没有，两个结合起来的元素
print(s1^s2)
print(s1.symmetric_difference(s2))





